<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <style>
      html {
        font-size: 16px; /* 默认字体大小 */
      }

      .container {
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem; /* 相对于根字体大小 */
      }

      h1 {
        font-size: 2.5rem; /* 40px (2.5 * 16px) */
      }

      @media (min-width: 768px) {
        html {
          font-size: 20px;
        }
      }
    </style>
  </head>
  <body>
    <div class="container">
      <h1>Hello Rem Layout!</h1>
    </div>
    <script>
      let a = "0099";
      function bbc() {
        console.log(a);
      }
      function HandleClick(name, age) {
        console.log(this);
        console.log(name, age);
        this.name = "test";
      }
      let click = new HandleClick("张三", 20);
      console.log(click);

      function Person() {}
      Person.prototype.sayHello = function () {
        console.log("hello");
      };
      let wangwu = new Person();
      wangwu.sayHello();
    </script>
  </body>
</html>
